<%--
  Created by IntelliJ IDEA.
  User: 郭宇轩
  Date: 2020/11/13
  Time: 20:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息</title>
    <style type="text/css">
        @import url("../static/css/Header.css");
    </style>
</head>

<%@ include file="../MainPage/Header.jsp"%>

<form action="../changeUserInfoServlet" method="post">
    <% if(session.getAttribute("username")!=null){ %>
    <a style="position: absolute; left: 38.1584%; top: 90px;">用户ID：<%= session.getAttribute("username")%></a>
    <a style="position: absolute; left: 38.1584%; top: 120px;">名称：<input type="text" name="name" value="<%= session.getAttribute("name")%>"/></a>
    <a style="position: absolute; left: 38.1584%; top: 150px;">地址：<input type="text" name="location" value="<%= session.getAttribute("location")%>"/></a>
    <input style="position: absolute; left: 45.1584%; top: 180px;" type="submit" value="保存"/>
</form>
<% }else response.sendRedirect("Login.jsp");%>
</body>
</html>
